<%-- 
    Document   : googleMap
    Created on : 26-sep-2010, 13:16:25
    Author     : Estudio
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example</title>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=ABQIAAAAO0QGzaBV_4_NMzqUp_f8nhTwM0brOpm-All5BF6PoaKBxRWWERRzpuFzBElRjPo9kTdJ3pKnflxu2w" type="text/javascript"></script>


<script type="text/javascript">
//<![CDATA[

function load() {
if (GBrowserIsCompatible()) {
    var map = new GMap(document.getElementById("map"));

    //map.addControl(new GLargeMapControl());

    

    //map.addControl(new GMapTypeControl());
    //map.addControl(new GSmallMapControl());

    map.setCenter(new GLatLng(-12.109655,-76.977553), 14);
    //var marker = new GMarker(new GPoint(-12.109655,-76.977553));
    //map.addOverlay(marker);

    map.addOverlay(createMarker(-12.109655,-76.977553));

    
}
}

function createMarker(lat,lng) {
	var point = new GLatLng(lat,lng);
	var marker = new GMarker(point);

	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml("Av Privamavera</br>Santiago de Surco");
	});
	return marker;
	}

//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 622px; height: 283px"></div>
</body>
</html>